'''
    集合{元素1，元素2...}
    长度：集合元素的个数
    无序，不重复
    列表去重：
        列表转换为集合，集合再转换为列表
'''

set1={1,1,1,2,3,4,5,6,7,8,9}
print(set1)
#这是空字典
set2= {}
#定义空集合
set3 = set()
print(set2)
set4={"a","csd","c","m","kdoj"}
print(set4)
#添加
set4.add("bvv")
print(set4)

#修改
set1.update({110,129,1,2})
print(set1)

#移除
set1.remove(110)
print(set1)

#列表去重
alist=[1,1,1,334,55,466,79876,3,3,2,2,]
aset = set(alist)
blist = list(aset)
print(blist)